package test.service.impl;

import javax.annotation.Resource;

import test.service.BaseTest;
import blog.core.exception.DependException;
import blog.core.exception.FormParamErrorException;
import blog.core.exception.NotFoundException;
import blog.spring.db.entity.Comment;
import blog.spring.db.service.ICommentService;

public class CommentService extends BaseTest<Comment> {

	@Resource
	private ICommentService commentService;

	@Override
	public void init() {
		entity = new Comment();
//		entity.setArticleInfo(new ArticleInfo(1));
		entity.setContent("我是有时间的评论内容");
		entity.setComment(new Comment(1));
	}

	@Override
	public void a_save() throws FormParamErrorException {
		commentService.save(entity);
	}

	@Override
	public void b_findByName() {
		// TODO Auto-generated method stub

	}

	@Override
	public void c_findById() throws NotFoundException {
		// TODO Auto-generated method stub

	}

	@Override
	public void d_update() throws FormParamErrorException, NotFoundException {
		// TODO Auto-generated method stub

	}

	@Override
	public void e_remove() throws DependException {
		commentService.remove(new Comment(3));
	}

	@Override
	public void f_addMulti() throws FormParamErrorException {
		// TODO Auto-generated method stub

	}

	@Override
	public void g_findList() {
		// TODO Auto-generated method stub

	}

	@Override
	public void h_searchList() {
		// TODO Auto-generated method stub

	}

	@Override
	public void i_searchUnique() {
		// TODO Auto-generated method stub

	}

}
